package com.alex.designPattern.observer.selfDefined;

public class Client {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Manager manager = new Manager();
		
		Worker alex = new Worker();
		alex.setName("alex");
		manager.addObserver(alex);
		
		Worker viven = new Worker();
		viven.setName("viven");
		manager.addObserver(viven);
		
		manager.updateAll();
	}

}
